package controller;

import pojo.Book;
import pojo.User;
import service.UserService;
import view.AddUser;
import view.UserView;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;

public class UserViewListener implements ActionListener {
    private UserView userView;
    private UserService userService = new UserService();

    public UserViewListener(UserView userView) {
        this.userView=userView;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals("新增用户")) {
            new AddUser(userView);
        }
    }
}